package com.ruoyi.program.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资料上传对象 wx_learning_material
 * 
 * @author ruoyi
 * @date 2025-10-04
 */
public class WxLearningMaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 资料id */
    private Long materialId;

    /** 章节id */
    @Excel(name = "章节id")
    private Long chapterId;

    /** 资料名称 */
    @Excel(name = "资料名称")
    private String title;

    /** 资料内容（1文档，2ppt，3ptf，4MP4） */
    @Excel(name = "资料内容", readConverterExp = "1=文档，2ppt，3ptf，4MP4")
    private Integer materialType;

    /** 文件路劲 */
    @Excel(name = "文件路劲")
    private String fileUrl;

    /** 视频时长 */
    @Excel(name = "视频时长")
    private Long duration;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private Long size;

    /** 资料描述 */
    @Excel(name = "资料描述")
    private String description;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long userId;

    /** 资料展示首图 */
    @Excel(name = "资料展示首图")
    private String dataImg;

    /** 下载量 */
    @Excel(name = "下载量")
    private String download;

    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }

    public void setChapterId(Long chapterId) 
    {
        this.chapterId = chapterId;
    }

    public Long getChapterId() 
    {
        return chapterId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setMaterialType(Integer materialType) 
    {
        this.materialType = materialType;
    }

    public Integer getMaterialType() 
    {
        return materialType;
    }

    public void setFileUrl(String fileUrl) 
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() 
    {
        return fileUrl;
    }

    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }

    public void setSize(Long size) 
    {
        this.size = size;
    }

    public Long getSize() 
    {
        return size;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setDataImg(String dataImg) 
    {
        this.dataImg = dataImg;
    }

    public String getDataImg() 
    {
        return dataImg;
    }

    public void setDownload(String download) 
    {
        this.download = download;
    }

    public String getDownload() 
    {
        return download;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("materialId", getMaterialId())
            .append("chapterId", getChapterId())
            .append("title", getTitle())
            .append("materialType", getMaterialType())
            .append("fileUrl", getFileUrl())
            .append("duration", getDuration())
            .append("size", getSize())
            .append("description", getDescription())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("userId", getUserId())
            .append("dataImg", getDataImg())
            .append("download", getDownload())
            .toString();
    }
}
